<html>
    <head>
        <script src="/js/jquery-1.11.1.min.js"></script>	
	<script src="/js/mediaelement-and-player.min.js"></script>
	<link rel="stylesheet" href="/css/mediaelementplayer.min.css" />
        <title>附件</title>
        <style>
            table{
                font-size:12px;                
            }
        </style>
    </head>
    <body>
        <h2><{if $net_info}><{$net_info.network_name}><{/if}><{if $question_info}>--<{$question_info.question_name}><{/if}><{if $subject_info}>--<{$subject_info.title}><{/if}></h2>
        <{if $list}>
        <table> 
        <tr id="nqa_<{$val.nqa_id}>"><th>类型序号</th><th>附件</th><th>操作</th></tr>
        <{foreach $list as $key => $val}>
        <tr>
            <{if $val.extension=='img'}>
            <td><b style="color:red;">图片<{$key+1}></b></td><td><img src='<{$val.fileurl}>' /></td><td><a href="<{$val.url}>" target="_blank">下载</a></td>
            <{/if}>
            <{if $val.extension=='video'}>
            <td><b style="color:red;">视频<{$key+1}></b></td><td><video width="640" height="360" src="<{$val.fileurl}>" type="video/mp4" id="player1" poster="../media/echo-hereweare.jpg" 
                                  controls="controls" preload="none"></video></td><td><a href="<{$val.url}>" target="_blank">下载</a></td>
            <{/if}>
            <{if $val.extension=='audit'}>
            <td><b style="color:red;">音频<{$key+1}></b></td><td><audio id="player2" src="<{$val.fileurl}>" type="audio/mp3" controls="controls"></audio></td><td><a href="<{$val.url}>" target="_blank">下载</a></td>
            <{/if}>
        </tr>
        <{/foreach}>
        </table>
        <{/if}>
<script>
$('audio,video').mediaelementplayer();
    </body>
</html>